import { defaultRequest as rq } from "./request";
import type { R } from "./request";

export const infoListApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${GATEWAY_URL}/backend-bsms/guardcat/redis/info/list", { params });
};

export const infoMapApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${GATEWAY_URL}/backend-bsms/guardcat/redis/info/map", { params });
};

/**
 * 慢查询记录
 */
export const slowLogApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${GATEWAY_URL}/backend-bsms/guardcat/redis/slowlog", { params });
};